package com.guet.mapper;

import com.github.pagehelper.Page;
import com.guet.DTO.DocumentPageDTO;
import com.guet.Entity.Document;
import com.guet.VO.DocumentVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DocumentMapper {
    void insert(Document document);

    Page<DocumentVO> list(DocumentPageDTO documentPageDTO);

    DocumentVO queryById(Integer id);

    @Delete("delete from document where id = #{id}")
    void deleteById(Integer id);
}
